﻿<!--- This template's task is to put every information landscape within a Border object. This is necessary since each information landscape needs an 
    enclosing border as a coordinate system for zooming -->
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:presentation="clr-namespace:ZOIL.Framework.Presentation">
    <Style TargetType="{x:Type presentation:ZInformationLandscape}">
        <Setter Property="Control.Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type presentation:ZInformationLandscape}">
                    <Border x:Name="PART_Border" ClipToBounds="True" Background="{TemplateBinding Property=Background}" Width="{TemplateBinding Property=Width}" Height="{TemplateBinding Property=Height}">
                        <ContentPresenter Content="{TemplateBinding ContentControl.Content}"/>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
</ResourceDictionary>